package service

import (
	hessian "github.com/apache/dubbo-go-hessian2"
	"github.com/apache/dubbo-go/config"
)

const serviceProvider = "UserService"

// Reference 对外暴露服务
func (userService *UserService) Reference() string {

	return serviceProvider
}

//初始化加载配置
func init() {

	config.SetProviderService(new(UserService))
	// ------for hessian2------
	hessian.RegisterPOJO(&User{})
}
